.class public Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;
.super Ljava/lang/Object;
.source "GlympseService.java"

# interfaces
.implements Lcom/glympse/platform/common/GlympseListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympseservice/GlympseService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "GlympseListenerUI"
.end annotation


# instance fields
.field m_nUpdateFlags:I

.field final synthetic this$0:Lcom/glympse/android/glympseservice/GlympseService;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympseservice/GlympseService;)V
    .locals 1
    .parameter

    .prologue
    .line 407
    iput-object p1, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->this$0:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 409
    const/4 v0, 0x0

    iput v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->m_nUpdateFlags:I

    return-void
.end method


# virtual methods
.method public DoUpdate(I)V
    .locals 2
    .parameter "nUpdateFlags"

    .prologue
    .line 415
    and-int/lit16 v0, p1, 0x100

    if-eqz v0, :cond_0

    .line 417
    iget-object v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->this$0:Lcom/glympse/android/glympseservice/GlympseService;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/glympse/android/glympseservice/GlympseService;->m_fInitialPacketReceived:Z

    .line 420
    :cond_0
    iget v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->m_nUpdateFlags:I

    or-int/2addr v0, p1

    iput v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->m_nUpdateFlags:I

    .line 422
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    if-eqz v0, :cond_3

    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-boolean v0, v0, Lcom/glympse/android/glympse/Glympse;->m_fActive:Z

    if-eqz v0, :cond_3

    .line 424
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget v1, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->m_nUpdateFlags:I

    invoke-virtual {v0, v1}, Lcom/glympse/android/glympse/Glympse;->DoUpdate(I)V

    .line 425
    const/4 v0, 0x0

    iput v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->m_nUpdateFlags:I

    .line 434
    :cond_1
    :goto_0
    const v0, 0xc010

    and-int/2addr v0, p1

    if-eqz v0, :cond_2

    .line 438
    iget-object v0, p0, Lcom/glympse/android/glympseservice/GlympseService$GlympseListenerUI;->this$0:Lcom/glympse/android/glympseservice/GlympseService;

    iget-object v0, v0, Lcom/glympse/android/glympseservice/GlympseService;->m_oNotificationList:Lcom/glympse/android/glympseservice/NotificationList;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/NotificationList;->Update()V

    .line 440
    :cond_2
    return-void

    .line 428
    :cond_3
    and-int/lit16 v0, p1, 0x4000

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-boolean v0, v0, Lcom/glympse/platform/Platform;->m_fBatteryGood:Z

    if-nez v0, :cond_1

    .line 429
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-boolean v0, v0, Lcom/glympse/platform/Platform;->m_fBatteryForce:Z

    if-nez v0, :cond_1

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v0}, Lcom/glympse/platform/common/SentTicketList;->AnyActive()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 431
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/platform/Platform;->ShowLowBatteryNotification()V

    goto :goto_0
.end method
